#include "lws_triedict.h"

using namespace LWS;

int main(int argc, char* argv[])
{
    if(argc != 6)
    {
	printf("makedict <word_inputfile> <hanzi_inputfile> "
		"<trie_outputtxtfile> <trie_outputbinfile> "
		"<CHAR_outputfile>\n");

	printf("Sample: makedict ./corpus/word.txt ./corpus/GB2312Hanzi.txt "
		"./data/trie.txt ./data/trie.dat ./data/CHAR.txt\n");

	return -1;
    }

    CMakeDict md;

    md.Make(argv[1], argv[2]);
    md.Output(argv[3], argv[4]);
    md.OutputCHAR(argv[5]);

    return 0;
}
